﻿using System.Data;
using DataAccess;
using EntitiesTM;

namespace Business
{
    public class BuDepartment
    {
        public static DataTable selAllDepartment(string companyid)
        {
            DaDepartment daDepartment = new DaDepartment();
            return daDepartment.selAllDepartment(companyid);
        }

        public static void insDepartment(EnDepartment department, string companyid)
        {
            DaDepartment daDepartment = new DaDepartment();
            daDepartment.insDepartment(department,companyid);
        }

        public static void updDepartment(EnDepartment department, string companyid)
        {
            DaDepartment daDepartment = new DaDepartment();
            daDepartment.updDepartment(department,companyid);
        }

        public static void delDepartment(EnDepartment department, string companyid)
        {
            DaDepartment daDepartment = new DaDepartment();
            daDepartment.delDepartment(department,companyid);
        }
    }
}
